package com.zmc.lostfound.common.constant;

/**
 * @author ZMC
 * @description Redis缓存常量池
 */
public class RedisConstant {

    public static final Long CACHE_NULL_TTL = 3L;

    public static final String CACHE_USER_BASE_KEY_PREFIX = "cache:UserBaseInfoVO:";
    public static final Long CACHE_USER_BASE_KEY_PREFIX_TTL = 3L * 60L * 60L;

    public static final String CAPTCHA_PHONE_KEY_PREFIX = "captcha:phone:";
    public static final Long CAPTCHA_PHONE_KEY_TTL = 5L;

    public static final String CAPTCHA_EMAIL_KEY_PREFIX = "captcha:email:";
    public static final Long CAPTCHA_EMAIL_KEY_TTL = 5L;

    public static final String CACHE_ROLE_PERMISSION_KEY_PREFIX = "cache:RoleAndPermissionDTO:";
    public static final Long CACHE_ROLE_PERMISSION_KEY_PREFIX_TTL = 3L * 60L * 60L;

    public static final String CACHE_POST_DETAIL_KEY_PREFIX = "cache:PostDetailInfoDTO:";
    public static final Long CACHE_POST_DETAIL_KEY_PREFIX_TTL = 3L * 60 * 60L;

    public static final String CACHE_ITEM_TYPE_LIST_KEY = "cache:itemTypeList";
    public static final Long CACHE_ITEM_TYPE_LIST_KEY_TTL = 3L * 60 * 60L;

    public static final String CACHE_FUNCTION_LIST_KEY = "cache:functionList";
    public static final Long CACHE_FUNCTION_LIST_KEY_TTL = 3L * 60 * 60L;

    public static final String COMMENT_LIKE_KEY_PREFIX = "comment:like:";

}